/**
 * 
 */
package com.org.javabody.Annotation.annotationdemo;

/**
 * @author Administrator
 *
 */
public class PrintMain {

	@GanhxAnnotation(getGanhx="demo")
	public void getName(){
		
		 if(PrintMain.class.isAnnotationPresent(GanhxAnnotation.class)){
			 GanhxAnnotation bs = PrintMain.class.getAnnotation(GanhxAnnotation.class); 
			    System.out.println(bs.getGanhx());
		 }
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
        new PrintMain().getName();
	}

}
